package 享元模式.代码实现;

public abstract class FlyWeight {

	// 内部状态
	private String intrinsic;
	// 外部状态
	protected final String extrinsic;

	// 定义的业务操作
	public abstract void operator();

	protected FlyWeight(String extrinsic) {
		this.extrinsic = extrinsic;
	}


	public String getExtrinsic() {
		return extrinsic;
	}


}
